﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FloatWindowsEdit.aspx.cs" Inherits="SysManage.Module.FloatWindows.FloatWindowsEdit" %>

<!DOCTYPE html>
<html>
<head runat="server">
   <%-- <script src="../Resource/js/jquery/jquery.min.js" type="text/javascript"></script>--%>
    <title></title>
<%--    <script type="text/javascript">
        $(function () {
            $("#Panel1_SimpleForm1_heContent").hide();
        })
    </script>--%>
</head>
<body>
    <form id="form1" runat="server" style="background-color: #0000FF">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server"
                    BodyPadding="10px" Title="SimpleForm">
                    <Items>
                        <f:TextBox ID="txtTitle" runat="server" Label="标题" Required="true" LabelWidth="80px" LabelAlign="Right" ShowRedStar="true" RequiredMessage="请填写标题">
                        </f:TextBox>
                        <f:FileUpload runat="server" LabelAlign="right" EmptyText="请选择一张图片(最佳图片大小136(长)*240(高))" ID="filePhoto" LabelWidth="80px"
                            Label="上传图片" ButtonText="图片" ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto_FileSelected" AcceptFileTypes="image/*">
                        </f:FileUpload>
                        
                        <f:HyperLinkImagePreview runat="server" ID="HyperLink1" CssStyle="cursor:pointer"
                            ShowEmptyLabel="true" LabelAlign="right" Text="查看图片" LabelWidth="80px">
                        </f:HyperLinkImagePreview>
                        <f:CheckBox ID="cbStatus" runat="server" Text="发布" Width="50px" CssStyle="margin-left:80px;"></f:CheckBox>
                        <f:HiddenField ID="hdImageId" runat="server"></f:HiddenField>
                        <f:RadioButtonList ID="rbposition" runat="server" Width="300px" Label="位置" LabelWidth="80px" LabelAlign="Right" Required="true" ShowRedStar="true" RequiredMessage="请选择飘窗位置">
                            <f:RadioItem Text="左中" Value="lm" />
                            <f:RadioItem Text="左下" Value="lb" />
                            <f:RadioItem Text="右中" Value="rm" />
                        </f:RadioButtonList>
                        <f:RadioButtonList ID="rbtype" runat="server" Hidden="true" Label="类型" LabelWidth="80px" LabelAlign="Right" Required="true" ShowRedStar="true" RequiredMessage="请选择飘窗类型">
                            <f:RadioItem Text="内容" Value="0" />
                            <f:RadioItem Text="链接" Value="1" />
                        </f:RadioButtonList>
                        <f:HtmlEditor ID="heContent" runat="server" Hidden="true" Label="内容" LabelWidth="80px" LabelAlign="Right"></f:HtmlEditor>
                        <f:TextBox ID="txtUrl" runat="server" Label="链接" LabelWidth="80px" LabelAlign="Right"></f:TextBox>
                    </Items>
                </f:SimpleForm>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭" DisableControlBeforePostBack="True">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
    </form>
</body>
</html>

